﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    Inherits="Nivdal.Countries" Title="" StylesheetTheme="SkinFile" CodeBehind="Countries.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <h1><asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, Countries_PageNameLabel %>"
        CssClass="PageNameContentStyle"></asp:Label></h1>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label ID="ErrorLabel" runat="server" Text=""></asp:Label>
    <div class="basic_element">
    <div class="red_title">
        <asp:Label ID="CountriesSummaryLabel" runat="server" Text="<%$ Resources:Resource, Countries_CountriesSummaryLabel %>" CssClass="white_title"></asp:Label>
    </div>
    <div class=padding5">
    <asp:GridView ID="worldStatisticsGridView" runat="server" DataSourceID="worldStatisticsSqlDataSource"
        SkinID="BigProfessional" AutoGenerateColumns="False" AllowPaging="True" Font-Size="13px"
        EnableTheming="True" PageSize="50">
        <PagerSettings FirstPageText="<%$ Resources:Resource, FirstPage %>" LastPageText="<%$ Resources:Resource, LastPage %>"
            Mode="NumericFirstLast" PageButtonCount="10" Position="Bottom" />
        <PagerStyle CssClass="pagination" HorizontalAlign="Center" />
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="NumberOfCounrtiesTitleLabel" runat="server" Text="<%$ Resources:Resource, Countries_NumberOfCounrtiesTitleLabel %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="NumberOfActiveUsersLabel" runat="server" Text='<%# Eval("NumberOfCounrties") %>'
                        SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="NumberOfUsersTitleLabel" runat="server" Text="<%$ Resources:Resource, Countries_NumberOfUsersTitleLabel %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="NumberOfUsersLabel" runat="server" Text='<%# Eval("NumberOfUsers") %>'
                        SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="CurrentSeasonTitleLabel" runat="server" Text="<%$ Resources:Resource, Countries_CurrentSeasonTitleLabel %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="CurrentSeasonLabel" runat="server" Text='<%# Eval("CurrentSeason") %>'
                        SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="ActiveForumThreadsTitleLabel" runat="server" Text="<%$ Resources:Resource, Countries_ActiveForumThreadsTitleLabel %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="ActiveForumThreadsLevelLabel" runat="server" Text='<%# Eval("ActiveForumThreads") %>'
                        SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="TransfersLastDayTitleLabel" runat="server" Text="<%$ Resources:Resource, Countries_TransfersLastDayTitleLabel %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="TransfersLastDayLabel" runat="server" Text='<%# Eval("TransfersLastDay") %>'
                        SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="CoachesTransfersLastDayTitleLabel" runat="server" Text="<%$ Resources:Resource, Countries_CoachesTransfersLastDayTitleLabel %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="CoachesTransfersLastDayLabel" runat="server" Text='<%# Eval("CoachesTransfersLastDay") %>'
                        SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </div>
    <asp:SqlDataSource ID="worldStatisticsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetWorldStatistics" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>
    </div>
    <div class="basic_element">
    <div class="red_title">
    <asp:Label ID="StatisticsLabel" runat="server" Text="<%$ Resources:Resource, Countries_StatisticsLabel%>" CssClass="white_title"></asp:Label>
    </div>  
    <div class="padding5">
        <asp:GridView ID="WorldCountryStatisticsGridView" runat="server" DataSourceID="WorldCountryStatisticsSqlDataSource"
        SkinID="BigProfessional" AutoGenerateColumns="False" AllowPaging="false" Font-Size="13px"
        EnableTheming="True">
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="CountryNameLabel" runat="server" Text="<%$ Resources:Resource, Global_CountryName %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Image ID="FlagImage" runat="server" ImageUrl='<%# "~/Images/Flags/" + Eval("NationalFlag") %>'
                        ToolTip='<%# Eval("CountryName") %>'  AlternateText='<%# Eval("CountryName") %>' CssClass="rounded_corners" />
                    <asp:HyperLink ID="CountryNameHyperLink" runat="server" Text='<%# Eval("CountryName") %>'
                        NavigateUrl='<%# Eval("CountryId", "Country.aspx?Id={0}") %>' SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="NationalChampionLabel" runat="server" Text="<%$ Resources:Resource, Countries_NationalChampionLabel %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:HyperLink ID="NationalChampionHyperLink" runat="server" Text='<%# Eval("NationalChampion") %>'
                        NavigateUrl='<%# Eval("NationalChampionId", "TeamHomePage.aspx?TeamId={0}") %>'
                        SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="CupWinnerLabel" runat="server" Text="<%$ Resources:Resource, Global_CupWinner %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:HyperLink ID="CupWinnerHyperLink" runat="server" Text='<%# Eval("CupWinner") %>'
                        NavigateUrl='<%# Eval("CupWinnerId", "TeamHomePage.aspx?TeamId={0}") %>' SkinID="BlackHyperLinkSkin"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="NumberOfActiveUsersTitleLabel" runat="server" Text="<%$ Resources:Resource, Countries_NumberOfActiveUsersTitleLabel %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="NumberOfActiveUsersLabel" runat="server" Text='<%# Eval("NumberOfActiveUsers") %>'
                        SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:Label ID="BottomLeagueLevelTitleLabel" runat="server" Text="<%$ Resources:Resource, Countries_BottomLeagueLevelTitleLabell %>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="BottomLeagueLevelLabel" runat="server" Text='<%# Eval("BottomLeagueLevel") %>'
                        SkinID="GridLabel"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </div>
    <asp:SqlDataSource ID="WorldCountryStatisticsSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="Nivdal_GetWorldCountryStatistics" SelectCommandType="StoredProcedure">
    </asp:SqlDataSource>  
    </div>
    
</asp:Content>
